<style>
    .express_data > thead > tr > th{
        padding: 0;
    }
</style>

<div class="modal fade" id="show_data" tabindex="-1" role="dialog" >
    <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">查看订单配送详细信息</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" id="cancel_id" name="cancel_id"/>
                    <div class="row" >
                        <div class="col-sm-12">
                            <dl class="dl-horizontal">
                                <div class="table-responsive">
                                    <table class="table table-hover express_data">
                                        <thead>
                                        <tr class="info">
                                            <th>派单单号</th>
                                            <th>快递订单单号</th>
                                            <th>指派方式</th>
                                            <th>状态代碼</th>
                                            <th>状态說明</th>
                                            <th>宅配状态代碼</th>
                                            <th>宅配状态說明</th>
                                            <th>创建时间</th>
                                        </tr>
                                        </thead>
                                        <tbody id="tr">
                                        </tbody>
                                    </table>
                                </div>
                            </dl>
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
                </div>
            </div>
    </div>
</div>
<script>
    function show_data(id){
        $.ajax({
            url:"?md=manage&cl=order&at=order_delivery_info",
            dataType:"json",
            type:"post",
            data:{'id':id},
            success:function (d) {
                var tr = '';
                console.log(d);
                $(d.express_data).each(function (k,v) {
                    tr+='   <tr><td>'+v.shop_express_no+'</td><td>'+v.express_no+'</td><td>'+d.express_type_data[v.express_type]+'</td><td>'+v.express_code+'</td><td>'+v.express_code_desc+'</td><td>'+v.shop_code+'</td><td>'+v.shop_code_desc+'</td><td>'+v.createdt+'</td></tr>';
                });

                $("#tr").append(tr);
            }
        });

    }

</script>